const path = require('path')
module.exports = {
  mode: "development",
  entry: path.resolve(__dirname, './src/js/index.ts'),
  output: {
    path: path.resolve(__dirname, './dist'),
    filename: "bundle.js"
  },
  resolve: {
    extensions:[".ts",".js",".cjs",".json"]
  },
  module: {
    rules: [
      {
        test: /\.ts$/,
        loader: 'ts-loader'
      }
    ]
  }
}